package lifei.lifei.spring.common;

import lifei.lifei.spring.pojo.Cat;

/**
 * @author 小李
 * @version 1.0
 * @date 2021/9/26 19:30
 */
//使用静态工厂方法实例化bean
public class StaticFactory {
    StaticFactory(){
        System.out.println("我是StaticFactory的无参构造");
    }
    //定义静态工厂方法
    public static Cat staticCreateBean(){
        return new Cat();
    }
}
